package com.jzy.bxb.model.constant;

/**
 * redis key
 *
 * @author JiangZhiYong
 * @date 2017-06-23 QQ:359135103
 */
public enum RedisKey {

	/** 用户会话 */
	UserSession("User:Session_%s"),
	/** 地区服务帮手map */
	AreaAssistantMap("Area:Assistant:Map"),
	/**用户验证码*/
	UserVerificationCode("User:VerificationCode_%s");
	;

	private String key;

	private RedisKey(String key) {
		this.key = key;
	}

	public String getKey(Object... objects) {
		return String.format(key, objects);
	}

}
